import axios from '@/utils/axios'

const getCouponByStoreIdURL = '/storeservice/userstoreactivity/getUserStoreActivityByStoreId'
const getStoreActivityByNearbyURL = '/storeservice/storeactivity/getStoreActivityByNearby'
const addUserStoreActivityURL = '/storeservice/userstoreactivity/addUserStoreActivity'
const commodity = {
    getCouponByStoreId(storeId){
        return axios.get(getCouponByStoreIdURL + '?storeId='+storeId)
    },
    getStoreActivityByNearby(data){
        return axios.post(getStoreActivityByNearbyURL, data)
    },
    addUserStoreActivity(data){
        return axios.post(addUserStoreActivityURL, data)
    }
}

export default commodity